home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / central.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.2 KB  |  39 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=central.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: central.SH,v 3.0 86/09/26 10:14:01 pb Rel $"
  9. #
  10. #################################################################
  11. #################################################################
  12. #################################################################
  13. ##########
  14. ########## the t.central shell script generator file
  15. ########## has all the constants, the rest of the stuff is added on
  16. ########## the command line
  17. ##########
  18. #################################################################
  19. #################################################################
  20. #################################################################
  21.  
  22. directory $datadir
  23.  
  24. output forward text
  25. !GROK!THIS!
  26. then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  27.     then
  28.         rm -f $outputfile.$$
  29.         echo "    " $outputfile not affected
  30.     elif mv $outputfile.$$ $outputfile
  31.     then
  32.         echo "    " $outputfile updated
  33.     else
  34.         echo "+++    " $outputfile left in $outputfile.$$
  35.     fi
  36. else
  37.     echo "    " Failed to create $outputfile.$$
  38. fi
  39.